import request from '@/utils/request'

// 查询经费申请列表
export function listFee(query) {
  return request({
    url: '/business/projectFee/list',
    method: 'get',
    params: query
  })
}

// 查询经费申请详细
export function getFee(id) {
  return request({
    url: '/business/projectFee/' + id,
    method: 'get'
  })
}

// 新增经费申请
export function addFee(data) {
  return request({
    url: '/business/projectFee',
    method: 'post',
    data: data
  })
}

// 修改经费申请
export function updateFee(data) {
  return request({
    url: '/business/projectFee',
    method: 'put',
    data: data
  })
}

export function saveOrUpdate(data) {
  return request({
    url: '/business/projectFee/saveOrUpdate',
    method: 'put',
    data: data
  })
}



// 删除经费申请
export function delFee(id) {
  return request({
    url: '/business/projectFee/' + id,
    method: 'delete'
  })
}
export function check(data) {
  return request({
    url: '/business/projectFee/check',
    method: 'put',
    data: data
  })
}


